package com.cloud.customer.controller;
import com.cloud.customer.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 *
 * @ClassName: CustomerController
 * @Author: Jameson Yang
 * @Date: created in 13:38 11/22/18
 */
@RestController
@RequestMapping("feign")
public class CustomerController {

    @Autowired
    CustomerService customerService;

    @RequestMapping("/one")
    public String getFromClient(){
        String fromClient = customerService.getFromClient("from feign");

        return fromClient;
    }


}
